<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>		
		<script type="text/javascript">
			var $app_root="__ROOT__";
			var $app_public="__PUBLIC__";
			var $app_url="__URL__";
		</script>
		<link href="__PUBLIC__/admin/css/admin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.7.2.min.js"></script>
		<!--Jquery UI插件-->
		<script type="text/javascript" src="__PUBLIC__/js/jquery-hcheckbox.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/jquery.idTabs.min.js"></script>
		<link href="__PUBLIC__/js/JqueryUi/css/custom-theme/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-timepicker-addon.js"></script>
		<!--UPLOADIFY-->  
		<script src="__PUBLIC__/uploadify/jquery.uploadify.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="__PUBLIC__/admin/js/adminedit.js"></script>
</head>
<body id="conedit">

	<!-- ui-dialog -->
		<div id="dialog" title="Dialog Title">
			<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
		</div>

<form action="__URL__/adding" method="POST" enctype="multipart/form-data">
	<input type="hidden" name="catid" value="<{$Think.get.catid}>">
<div>
	<ul class="idTabs"> 
	  <li><a href="#add_content">内容</a></li> 
	  <li><a href="#add_attach">相关设置</a></li>
	</ul> 
</div>
<div class="clear" style="height:10px;"></div>

<div id="add_content">
	<div class="edit_head">
		<ul>
			<li>
				<span>栏目：</span><diy:selects options="menu" name="typeid" id="menu" disabled="disabled" first="请选择"/>
			</li>
		
			<li>
				<span>标题：</span> <input type="text" name="title" class="title"/>
			</li>
            <li>
				<span>颜色：</span> <input type="text" name="titlecolor" id="color" style="width:100px;"  class="title"/>
			</li>
            <li>
				<span>title：</span><input type="text" name="seotitle" class="title"/>
			</li>
			<li>
				<span>属性：</span><html:checkbox name="stick" checkboxes="stick" class="checkbox"/>
			</li>
			<li>
				<span>视频：</span><a href="#" id="dialog-link" class="ui-state-default ui-corner-all">添加|编辑</a>
			</li>
		</ul>
	</div>
	<div class="edit_pic">
		<input type="hidden" name="pic" id="picname"/>
		<img src="<{$thumb}>" id="s_pic"/>
		<div>
		<input id="pic_upload" name="pic_upload" type="file" multiple="true">
		</div>
	</div>
	<div class="clear"></div>
	<div class="content">
		<div id="left"><span>内容：</span></div>
		<div id="editor">
			<textarea cols="80" id="content" name="content" rows="10"></textarea>
			<{$ck}>
		</DIV>  
		<div class="clear"></div>
	</div>
</div>

<div id="add_attach">
	<div class="edit_head">
		<ul class="edit_attach">
			<li><span>关键词：</span><input type="text" name="keywords" class="duan"/></li>
			<li><span>描述：</span><input type="text" name="description" class="title"/></li>
			<li><span>跳转地址：</span><input type="text" name="url" class="duan"/></li>
			<li><span>TAG标签：</span><input type="text" name="tag" class="duan"/></li>
			<li><span>来源名：</span><input type="text" name="sourcename" class="duan"/></li>
			<li><span>来源地址：</span><input type="text" name="sourceurl" class="duan"/></li>
			<li><span>允许评论：</span>
					<input type="Radio" name="allow_comment" value="1" checked><label>允许</label>
					<input type="Radio" name="allow_comment" value="2" ><label>禁止</label>
			</li>
			<li><span>浏览权限：</span><html:select options="groupids" name="groupids_view" /></li>
			<li><span>发布时间：</span><input type="text" name="addtime" value="<{$addtime}>" id="datepicker" class="duan"/></li>
			<li><span>文 件 名：</span><input type="text" name="filename" class="duan"/></li>
		</ul>
	</div>
</div>

<div id="submit">	
		<button type="submit" onclick="ubt()">确认发布</button>	
		<button type="button" onclick="javascript:history.back();">返回</button>
</div>


</form>

</body>
</html>
